<template>
  <div class="rarity-box">
    <van-nav-bar
      title="联盟"
      left-text=""
      :border="false"
      right-text=""
      left-arrow
      @click-left="onClickLeft"
      @click-right="onClickRight"
    />
    <!-- 夺宝大图 -->
    <div class="fs-div">
      <!-- 夺宝水晶，好礼等你拿 -->
      <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
  <van-swipe-item><img width="100%" src="https://img1.baidu.com/it/u=963524821,412613733&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500" alt=""></van-swipe-item>
  <van-swipe-item><img width="100%" src="https://img2.baidu.com/it/u=2308856840,1997076502&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500" alt=""></van-swipe-item>
  <van-swipe-item><img width="100%" src="https://img1.baidu.com/it/u=782488829,2485739574&fm=253&fmt=auto&app=120&f=JPEG?w=1280&h=800" alt=""></van-swipe-item>
  <van-swipe-item><img width="100%" src="https://img2.baidu.com/it/u=2441077894,983696453&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=313" alt=""></van-swipe-item>
  <van-swipe-item><img width="100%" src="https://img1.baidu.com/it/u=3679862445,731275471&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500" alt=""></van-swipe-item>
  <van-swipe-item><img width="100%" src="https://img2.baidu.com/it/u=3973378857,1334644838&fm=253&fmt=auto&app=138&f=JPEG?w=882&h=500" alt=""></van-swipe-item>
  
</van-swipe>
    </div>
    <!-- 活动页面 -->
    <div class="sd-div">
      <!-- <div></div> -->
      <p class="time">
        <van-count-down
          :time="time"
          format="DD 天 HH 时 mm 分ss  秒"
        />
        <span>更新奖池</span>
      </p>
      <div class="sd-lis">
        <li><img width="100%" src="https://img2.baidu.com/it/u=3859986305,1799849089&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=1000" alt=""></li>
        <li><img width="100%" src="https://img2.baidu.com/it/u=1684764365,1504695303&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=1000" alt=""></li>
        <li><img width="100%" src="https://img1.baidu.com/it/u=3701353142,3161124105&fm=253&fmt=auto&app=138&f=JPEG?w=281&h=500" alt=""></li>
        <li><img width="100%" src="https://img2.baidu.com/it/u=1574719925,2712624915&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=800" alt=""></li>
        <!-- 抽奖 -->
        <li><img width="100%" src="https://img1.baidu.com/it/u=3949019928,2138080900&fm=253&fmt=auto&app=138&f=PNG?w=300&h=300" alt=""></li>

        <li><img width="100%" src="https://img2.baidu.com/it/u=1598137740,3997597812&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=800" alt=""></li>
        <li><img width="100%" src="https://img2.baidu.com/it/u=3464097108,3892059238&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=889" alt=""></li>
        <li><img width="100%" src="https://img2.baidu.com/it/u=3348144703,402923780&fm=253&fmt=auto&app=138&f=PNG?w=313&h=500" alt=""></li>
        <li><img width="100%" src="https://img0.baidu.com/it/u=3852130620,3731606523&fm=253&fmt=auto&app=120&f=JPEG?w=720&h=1280" alt=""></li>
        
      </div>
      <div class="sd-btn">
        累计夺宝赢礼包
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      time: 30 * 60 * 60 * 1000,
    };
  },
  methods: {
    onClickLeft() {
      //  Toast('返回');
      this.$router.push("find");
      // console.log(1);
    },
    onClickRight() {
      //   Toast('按钮');
    },
  },
};
</script>

<style lang="scss" >
.rarity-box {
  color: white;
  width: 90%;
  margin: 0 auto;
  /* lunbo */
    .my-swipe .van-swipe-item {
    color: #fff;
    font-size: 20px;
    line-height: 150px;
    text-align: center;
    background-color: #39a9ed;
  }
  .van-nav-bar {
    width: 100%;
    margin: 0 auto;
    margin-top: 30px;
    background-color: #1a1a1a;
  }
  .van-nav-bar__content {
    height: 80px;
    //
  }
  .van-nav-bar__title {
    height: 80px;
    font-size: 40px;
    line-height: 80px;
    color: #9a9aa4;
  }
  .van-icon-arrow-left {
    font-size: 40px;
    color: #9a9aa4;
  }
  .van-nav-bar__right {
    font-size: 28px;
    color: #9a9aa4;
  }
  .fs-div {
    width: 90%;
    height: 320px;
    margin: 0 auto;
    font-size: 32px;
    text-align: center;
    line-height: 320px;
    color: black;
    overflow: hidden;
    background-color: #efefef;
  }
  .sd-div {
    width: 100%;
    height: 900px;
    margin-top: 50px;
    background-color: #efefef;
    .time {
      height: 60px;
      color: black;
      text-align: center;
      font-size: 28px;
      padding: 50px 0;
      display: flex;
      justify-content: center;
      align-items: center;
      .van-count-down {
        font-size: 28px;
      }
    }
    .sd-lis {
      width: 550px;
      height: 550px;
      margin: 0 auto;
      margin-top: 40px;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      li {
        width: 160px;
        height: 160px;
        background-color: #cecece;
        margin-right: 10px;
        margin-bottom: 10px;
        overflow: hidden;
        background-color:#b90005 ;
      }
    }
    .sd-btn{
        width: 380px;
        height: 90px;
        margin: 50px auto;
        border-radius: 60px;
        background-color: #cecece;
        font-size: 32px;
        text-align: center;
        line-height: 90px;
    }
  }
}
</style>